﻿<!--//=============================================================
    // Copyright (C) 2015 福流网络
    // 作 者：钟星星
    // 日 期：2016-01-09
    // 描 述:  港保费核销自定义查询
    // 版 本：1.00
    // 修改历史纪录
    // 版 本  修改时间      修改人            修改内容
    //=============================================================-->

<div id="QueryItem">

    <div class="col1" id="query_item_ship_agent_name">
        <table class="query_table">
            <tr>
                <td class="label">船代</td>
                <td class="exp" style="display: none">
                    <select>
                        <option value="like">包含</option>
                        <option value="=">等于</option>
                        <option value=" not like">不包含</option>
                        <option value="<>">不等于</option>
                    </select>
                </td>
                <td>
                    <div id="ship_agent_id" name="ship_agent_id" class="mini-autocomplete" style="width:100%" popupwidth="200" allowinput="true" textfield="short" valuefield="id" value="0"
                         showclose="true" valuefromselect="true" url="../../../Share/GetJsonList?tablename=t_base_objs&fieldnames=id,zucode,short&where=zclass_id=500&searchField=short,zucode" oncloseclick="onCloseClick">
                        <div property="columns">
                            <div header="编号" field="zucode"></div>
                            <div header="简称" field="short"></div>
                        </div>
                    </div>
                </td>
            </tr>
        </table>
    </div>

    <div class="col1" id="query_item_dept_name">
        <table class="query_table">
            <tr>
                <td class="label">所属公司</td>
                <td class="exp" style="display: none">
                    <select><option value="=">等于</option><option value=">">大于</option><option value="<">小于</option><option value="between">在..之间</option></select>
                </td>
                <td>
                    <select style="width:100%; margin-left: 4px;" name="dept_name" class="mini-combobox">
                        <option value=""></option>
                        <option value="华报报关公司">华报报关公司</option>
                        <option value="华物报关公司">华物报关公司</option>
                    </select>
                </td>
            </tr>
        </table>
    </div>

    <div class="col1" id="query_item_wharf_name">
        <table class="query_table">
            <tr>
                <td class="label">码头</td>
                <td class="exp" style="display: none">
                    <select>
                        <option value="like">包含</option>
                        <option value="=">等于</option>
                        <option value=" not like">不包含</option>
                        <option value="<>">不等于</option>
                    </select>
                </td>
                <td>
                    <div id="wharf_name" name="wharf_name" class="mini-combobox" style="width:100%;" popupwidth="200" multiselect="true" allowinput="true" textfield="znamec" valuefield="id"
                         valuefromselect="true" url="../../../Share/GetJsonList?tablename=t_base_objs&fieldnames=id,zucode,znamec&where=zclass_id=300&searchField=znamec,zucode" oncloseclick="onCloseClick">
                        <div property="columns">
                            <div header="编号" field="zucode"></div>
                            <div header="简称" field="znamec"></div>
                        </div>
                    </div>
                </td>
            </tr>
        </table>
    </div>

    <div class="col1" id="query_item_declare_id">
        <table class="query_table">
            <tr>
                <td class="label">报关类型</td>
                <td class="exp" style="display: none">
                    <select>
                        <option value="like">包含</option>
                        <option value="=">等于</option>
                        <option value=" not like">不包含</option>
                        <option value="<>">不等于</option>
                    </select>
                </td>
                <td>
                    <div id="declare_id" name="declare_id" class="mini-autocomplete" style="width: 100%; " popupwidth="200" allowinput="true" pinyinfield="name" textfield="name" valuefield="value" valuefromselect="true"
                         showclose="true" url="../../../Share/GetJsonList?tablename=v_data_base_dictionary_detail&fieldnames=value,name&where=code='bg_baoguanleixing'&searchField=name,value" oncloseclick="onCloseClick">
                        <div property="columns">
                            <div header="编号" field="value"></div>
                            <div header="简称" field="name"></div>
                        </div>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <!--<div class="col1" id="query_item_arps_bill_no">
        <table class="query_table">
            <tr>
                <td class="label">结算单号</td>
                <td class="exp" style="display: none">
                    <select><option value="=">等于</option></select>
                </td>
                <td>
                    <div id="arps_bill_no" name="arps_bill_no" class="mini-autocomplete" style="width:100%;" popupwidth="250" textfield="bill_no" valuefield="bill_no" valuefromselect="true" oncloseclick="onCloseClick" pinyinfield="bill_no"
                         showclose="true" url="../../../Share/GetJsonList?tablename=t_arps&fieldnames=bill_no&searchField=bill_no">
                        <div property="columns">
                            <div header="简称" field="bill_no"></div>
                        </div>
                    </div>
                </td>
            </tr>
        </table>
    </div>-->
    <div class="col1" id="query_item_audit_status">
        <table class="query_table">
            <tr>
                <td class="label">核销状态</td>
                <td class="exp" style="display: none">
                    <select><option value="=">等于</option><option value=">">大于</option><option value="<">小于</option><option value="between">在..之间</option></select>
                </td>
                <td>
                    <select style="width:100%; margin-left: 4px;" id="audit_status" name="audit_status" class="mini-combobox">
                        <option value=""></option>
                        <option value="未核销">未核销</option>
                        <option value="已核销">已核销</option>
                    </select>

                </td>
            </tr>
        </table>
    </div>
    <div class="col1" id="query_item_dept_id">
        <table class="query_table">
            <tr>
                <td class="label">报关组</td>
                <td class="exp" style="display: none">
                    <select style="display: none"><option value="=">等于</option><option value=">">大于</option><option value="<">小于</option><option value="between">在..之间</option></select>
                </td>
                <td>
                    <input id="dept_id" name="dept_id" allowinput="true" multiselect="true"
                           class="mini-treeselect" style="width: 100%;" url="/extendpage/data/jsondata.aspx?entity=t_base_department&condition=path like'%25001-003%25' or path like'%25001-001%25'&type=1"
                           textfield="name" valuefield="id" popupwidth="300" parentfield="parent_id" />
                </td>
            </tr>
        </table>
    </div>

    <div class="col1" id="query_item_serial_no"><table class="query_table"><tr><td class="label">流水号</td><td class="exp" style="display: none"><select><option value="like">包含</option><option value="=">等于</option><option value=" not like">不包含</option> <option value="<>">不等于</option> </select></td><td><input name="serial_no" class="mini-textbox" style="width:100%;" data="serial_no_data" /></td></tr></table></div>
    <!--<div class="col1" id="query_item_arps_use_no">
        <table class="query_table">
            <tr>
                <td class="label">结算单自编号</td>
                <td class="exp" style="display: none"><select><option value="between">在..之间</option></select></td>
                <td>
                    <input name="arps_use_no" class="mini-textbox" style="width:45%;" data="arps_use_no" />
                    <input name="arps_use_no_1" class="mini-textbox" style="width:45%;" data="arps_use_no" />
                </td>
            </tr>
        </table>
    </div>
    <div class="col1" id="query_item_arps_audit_dt">
        <table class="query_table">
            <tr>
                <td class="label">收款审核时间</td>
                <td class="exp" style="display: none">
                    <select>
                        <option value="between">在..之间</option>
                    </select>
                </td>
                <td colspan="2">
                    <input name="arps_audit_dt" class="mini-datepicker" style="width:48%;" data="arps_audit_dt" />

                    <input name="arps_audit_dt_1" class="mini-datepicker" style="width: 48%;" data="arps_audit_dt" />
                </td>
            </tr>
        </table>
    </div>-->
    <div class="col1" id="query_item_cabin_no"><table class="query_table"><tr><td class="label">提运单号</td><td class="exp" style="display: none"><select><option value="like">包含</option><option value="=">等于</option><option value=" not like">不包含</option> <option value="<>">不等于</option> </select></td><td><input name="cabin_no" class="mini-textbox" style="width:100%;" data="cabin_no_data" /></td></tr></table></div>


    <div class="col1" id="query_item_container_type_no">
        <table class="query_table">
            <tr>
                <td class="label">柜型</td>
                <td class="exp" style="display: none">
                    <select><option value="=">等于</option><option value=">">大于</option><option value="<">小于</option></select>
                </td>
                <td><input name="container_type_no" class="mini-textbox" style="width:100%;" data="container_type_no_data" /></td>
            </tr>
        </table>
    </div>
    <div class="col1" id="query_item_container_no"><table class="query_table"><tr><td class="label">柜号</td><td class="exp" style="display: none"><select><option value="like">包含</option><option value="=">等于</option><option value=" not like">不包含</option> <option value="<>">不等于</option> </select></td><td><input name="container_no" class="mini-textbox" style="width:100%;" data="container_no_data" /></td></tr></table></div>

    <div class="col2" id="query_item_pass_dt">
        <table class="query_table">
            <tr>
                <td class="label">放行时间</td>
                <td class="exp" style="display: none">
                    <select>
                        <option value=">">大于</option>
                        <option value="=">等于</option>
                        <option value="<">小于</option>
                        <option value="between">在..之间</option>
                    </select>
                </td>
                <td><input name="pass_dt" class="mini-datepicker" style="width:100%;" data="pass_dt_data" /></td>
                <td>
                    <input name="pass_dt_1" class="mini-datepicker" style="width:100%;" data="pass_dt_data" />
                </td>
            </tr>
        </table>
    </div>


    <div class="col2" id="query_item_wharf_dt"><table class="query_table"><tr><td class="label">缴费日期</td><td class="exp" style="display: none"><select><option value=">">大于</option><option value="=">等于</option><option value="<">小于</option><option value="between">在..之间</option></select></td><td><input name="wharf_dt" class="mini-datepicker" style="width:100%;" data="wharf_dt_data" /></td><td><input name="wharf_dt_1" class="mini-datepicker" style="width:100%;" data="wharf_dt_data" /></td></tr></table></div>
    <div class="col1" id="query_item_apply_no"><table class="query_table"><tr><td class="label">报关单号</td><td class="exp" style="display: none"><select><option value="like">包含</option><option value="=">等于</option><option value=" not like">不包含</option> <option value="<>">不等于</option> </select></td><td><input name="apply_no" class="mini-textbox" style="width:100%;" data="apply_no_data" /></td></tr></table></div>

    <div class="col2" id="query_item_audit_dt"><table class="query_table"><tr><td class="label">核销时间</td><td class="exp" style="display: none"><select><option value=">">大于</option><option value="=">等于</option><option value="<">小于</option><option value="between">在..之间</option></select></td><td><input name="audit_dt" class="mini-datepicker" style="width:100%;" data="audit_dt_data" /></td><td><input name="audit_dt_1" class="mini-datepicker" style="width:100%;" data="audit_dt_data" /></td></tr></table></div>
    <div class="col2" id="query_item_apply_dt"><table class="query_table"><tr><td class="label">报关日期</td><td class="exp" style="display: none"><select><option value=">">大于</option><option value="=">等于</option><option value="<">小于</option><option value="between">在..之间</option></select></td><td><input name="apply_dt" class="mini-datepicker" style="width:100%;" data="apply_dt_data" /></td><td><input name="apply_dt_1" class="mini-datepicker" style="width:100%;" data="apply_dt_data" /></td></tr></table></div>
    <div class="col2" id="query_item_touch_time"><table class="query_table"><tr><td class="label">对碰时间</td><td class="exp" style="display: none"><select><option value=">">大于</option><option value="=">等于</option><option value="<">小于</option><option value="between">在..之间</option></select></td><td><input name="touch_time" class="mini-datepicker" style="width:100%;" data="touch_time_data" /></td><td><input name="touch_time_1" class="mini-datepicker" style="width:100%;" data="touch_time_data" /></td></tr></table></div>


   

    <!--<div class="col2" id="">
        <table class="query_table">
            <tr>
                <td class="label">会计期间</td>
                <td>
                    <div id="period_name" name="period_name" class="mini-autocomplete" style="width:100%" popupwidth="500" allowinput="true" textfield="periodEndDt" valuefield="id" value="0" onvaluechanged="commentValueChanged"
                         showclose="true" valuefromselect="true" url="../../../Share/GetJsonList?tablename=t_fin_account_period&fieldnames=id,period_name,period_begin_dt,period_end_dt,( CONVERT(varchar(100),period_begin_dt ,23) + %2B + '/' + %2B +  CONVERT(varchar(100),period_end_dt,23) ) as periodEndDt&searchField=period_name" oncloseclick="onCloseClick">
                        <div property="columns">
                            <div header="简称" field="period_name"></div>
                            <div header="开始时间" field="period_begin_dt"></div>
                            <div header="结束时间" field="period_end_dt"></div>
                        </div>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <div id="query_item_kjqj_dt" style="display:none">
        <table class="query_table">
            <tr>
                <td>
                    <input id="txtpayee_dt_1" name="payee_dt_1" class="mini-hidden" style="width:100%;" data="payee_dt_data" />
                    <input id="txtpayee_dt_2" name="payee_dt_2" class="mini-hidden" style="width:100%;" data="payee_dt_data" />
                </td>

            </tr>
        </table>
    </div>-->


</div>


<script>
    function onCloseClick(e) {
        var obj = e.sender;
        obj.setText("");
        obj.setValue("");
    }

    //会计期间下拉框改变事件
    function commentValueChanged(e) {
        if (e.value != "") {
            var beginDt = e.selecteds[0].period_begin_dt;
            var endDt = e.selecteds[0].period_end_dt;
            mini.get("txtpayee_dt_1").setValue(beginDt);
            mini.get("txtpayee_dt_2").setValue(endDt);
        } else {
            mini.get("txtpayee_dt_1").setValue("");
            mini.get("txtpayee_dt_2").setValue("");

        }
    }
</script>